/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const accountRouter =
  {
    path: '/account',
    component: Layout,
    redirect: '/account',
    name: 'Account',
    meta: {
      title: 'Account',
      icon: 'account',
      roles: ['admin']
    },
    hidden: false,
    children: [
      {
        path: '/account',
        name: 'account',
        component: () => import('@/views/account/index'),
        meta: { title: 'Account', icon: 'account', breadcrumb: false,
        roles: ['admin']
      }
      },
      {
        path: '/account/autoPay',
        component: () => import('@/views/account/autoPay'),
        name: 'Autopay',
        meta: {
          title: 'Autopay Multiple months',
          exports: 'autopay',
          noCache: true,
          // activeMenu: '//addList',
          roles: ['admin']
        },
        hidden: true
      }, {
        path: '/account/master',
        component: () => import('@/views/account/master'),
        name: 'Master',
        meta: {
          title: 'Master Detail',
          noCache: true,
          exports: 'master',
          // activeMenu: '//addUserList',
          roles: ['admin']
        },
        hidden: true
      },
      {
        path: '/account/allocation',
        component: () => import('@/views/account/allocation'),
        name: 'Allocation',
        meta: {
          title: 'Funding Allocation',
          exports: 'funding_allocation',
          noCache: true,
          // activeMenu: '//addUserList',
          roles: ['admin']
        },
        hidden: true
      },
      {
        path: '/account/sessions',
        component: () => import('@/views/account/sessions'),
        name: 'Sessions',
        meta: {
          title: 'Number of Sessions',
          exports: 'number_of_session',
          noCache: true,
          // activeMenu: '//addUserList',
          roles: ['admin']
        },
        hidden: true
      }
      ]
  }
export default accountRouter
